{% extends "../../bocore/admin/master.html" %}
{% block title %}{% end %}
{% block header%}{% end %}
{% block sidebar_header %}{% end %}
{% block content_header_title%}我的相册{% end %}
{% block content_header_breadcrumb%}{% end %}
{% block content_body%}
<div id="demo-gallery"></div>
{% module BoUploader('demo_upload', uploaded_javascript_callback='my_fileuploaded') %}
{% end %}
{% block footer%}
<script type="text/javascript">
    function my_fileuploaded(rsp, file) {
        console.log(rsp, file);
    }
    $(function(){
        $.get("{{api('gallery_demo_data')}}", {}, function(rsp){
            var elem_dmeo = $("#demo-gallery");
            elem_dmeo.html(rsp.data);
            elem_dmeo.justifiedGallery();
        }, "json");
    });

</script>

{% end %}